/**
 * Created by lll on 2017/4/20.
 */
function showNumberWithAnimation( i, j, randNumber ){
    var numberCell = $('#number-cell-'+ i +"-"+ j );
    numberCell.css({
        "background-color": getNumberBackgroundColor(randNumber),
        "color":getNumberColor(randNumber),
    });
    numberCell.text(randNumber);

    numberCell.animate({
        width :  cellSideLength ,
        height: cellSideLength ,
        top:getPosTop(i,j),
        left:getPosLeft(i,j)
    },100).addClass("rotaeR");
}
function showMoveAnimation( fromx , fromy , tox , toy ){
    var numberCell = $('#number-cell-' + fromx + '-' + fromy ) ;
    numberCell.animate({
        top : getPosTop( tox , toy ),
        left : getPosLeft( tox , toy )
    }, 200 );
}
function updateScore( score ){
    $("#score").text( score ).addClass("score-rotate");
}